#include "TimerView.h"
#include "TimerViewResourceDefine.h"

void TimerView::setTime(uint8_t hour, uint8_t min, uint8_t sec, uint8_t millsec)
{
	timerComponent.updateTime(hour, min, sec, millsec);
}

void TimerView::init()
{
	Serial.println("TimerView::init()");

	Serial.println("home view initialized...");
}

void TimerView::show()
{
	//Set title
	lcd.setFreeFont(TIMER_TITLE_FONT);
	lcd.setTextColor(TIMER_TEXT_COLOR);
	lcd.drawString("Timer", TIMER_TITLE_POS_X, TIMER_TITLE_POS_Y);

	timerComponent.showAll();
	timerComponent.render();
}

TimerView::~TimerView()
{
}
